package test00;

/**
 * @Test: 测试类
 * @author: ZBoHang
 * @time: 2021/9/7 8:53
 */
public class Test {

    public static void main(String[] args) {
        int[] a = {1,3,-2,4,9,-7};
    }

    public int[] sortedSquares(int[] nums) {
        int[] b = new int[nums.length];
        for (int i = 0; i < nums.length; i++) {
            b[i] = nums[i] * nums[i];
        }
        return b;
    }
}
